import java.util.Scanner;

public class Main{

    public static String fun(double n){
        return String.format("%.2f", n);
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int sum = 1;//第0天的
        for(int i=1;i<n;i++){
            sum += 1;
            sum *= 2;
        }
        System.out.println(sum);
    }
}